import ajax from '@/utils/ajax';
import request from '@/utils/request'
export default {
    // 合同作废
    contractInvalidation(data) {
        return ajax({
            url: '/contract/contractInvalidation',
            method: 'post',
            data
        })
    },
    // 定金合同关联装修合同
    DJHTRelationZXHT(data) {
        return ajax({
            url: '/contract/DJHTRelationZXHT',
            method: 'post',
            data
        })
    },
    // 导出合同
    exportContractExcel(data) {
        return ajax({
            url: '/contract/exportContractExcel',
            method: 'get',
            data
        })
    },
    // 合同作废
    contractInvalidation(data) {
        return ajax({
            url: '/contract/contractInvalidation',
            method: 'post',
            data
        })
    },
    // 添加勘场合同
    addKCHT(data) {
        return ajax({
            url: '/contract/addKCHT',
            method: 'post',
            data
        })
    },
    // 添加增减项合同
    addZJXHT(data) {
        return ajax({
            url: '/contract/addZJXHT',
            method: 'post',
            data
        })
    },
    // 添加定金合同
    addDJHT(data) {
        return ajax({
            url: '/contract/addDJHT',
            method: 'post',
            data
        })
    },
    // 添加装修合同
    addZXHT(data) {
        return ajax({
            url: '/contract/addZXHT',
            method: 'post',
            data
        })
    },
    // 获取合同列表
    getContractList(data) {
        return ajax({
            url: '/contract/getContractList',
            method: 'get',
            data
        })
    },
    // 获取合同详情
    getContractDetails(data) {
        return ajax({
            url: '/contract/getContractDetails',
            method: 'get',
            data
        })
    },
}